package com.equipment.user.web.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2018-03-21 15:28
 **/
@RestController
public class LoginController {


	@GetMapping("/login")
	public String login(String username,String password){
		if("admin".equals(username)&&"admin".equals(password)){
			return "success";
		}
		return "error";
	}
}
